package com.ltf.order.pojo;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.ltf.product.pojo.ProductInfo;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @Auther: liutf
 * @Date: 2025/3/24
 * @Description: com.ltf.order.pojo
 * @version: 1.0
 */

@Data
public class OrderInfo {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private BigDecimal totalAmount;
    private Long userId;
    private String nickName;
    private String address;

    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<ProductInfo> productList;

    private Date createTime;
}

